package cn.javass.dp.command.example5;

/**
 * 一道菜 就是一个命令对象  绿豆排骨汤
 */
public class ChopCommand implements Command{

    private CookApi cookApi = null;


    public void setCookApi(CookApi cookApi) {
        this.cookApi = cookApi;
    }

    @Override
    public void execute() {
        this.cookApi.cook("绿豆排骨汤");
    }
}
